/*******************************************************************************
 * Copyright (c) 2012 March and Conquest.
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ******************************************************************************/
package mrusanov.towers.cards;

import java.io.Serializable;

import mrusanov.towers.main.Game;
import mrusanov.towers.players.Player;
import mrusanov.towers.resources.ResourceCost;

public abstract class AbstractCard implements Serializable {
	private static final long serialVersionUID = 3805348858609782023L;

	public abstract ResourceCost getCost();

	public abstract void executeAction(Game game, Player player, Player enemy);

	public abstract String getNameMessageKey();

	public abstract String getDescriptionMessageKey();

	public boolean playAgain() {
		return false;
	}

	// currently check is only on UI. I think, that for now it is enough
	public boolean canBeThrownAway() {
		return true;
	}

	@Override
	public final String toString() {
		return getClass().getSimpleName();
	}
}
